package com.springcloud.market.common.feign;


import com.springcloud.market.common.dto.OrderDTO;
import com.springcloud.market.common.model.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

// com.springcloud.market.order.feign.OrderFeignService
@FeignClient( name = "order-service",path = "/order")
public interface OrderFeignService {
    @GetMapping("/{id}")
    R<OrderDTO> getOrderById(@PathVariable("id") Long id);

    @PostMapping("/create")
    R<String> createOrder();
}